import 'package:get/get.dart';
import 'package:juming_test/action/home_action.dart';
import 'package:juming_test/model/home/home_domain_model.dart';

class HomeDomainViewModel extends GetxController {
  // 域名数据
  final Rx<HomeDomainModel?> domainData = Rx(null);

  @override
  onReady() {
    super.onReady();
    _getDomainData();
  }

  // 获取banner数据
  Future<void> _getDomainData() async {
    domainData.value = await HomeAction.fetchDomainData();
  }
}
